<div class="fsh-pop">
    <div id="add_form" class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">LOGO</label>
            <div class="layui-input-block">
                <input type="hidden" name="school_id" value="<%=school_id||0%>">
                <img class="layui-upload-img" id="upload_header" src="<%=logo||'http://windows.sxycy.cn:8888/group1/M00/00/2F/wKgBBV5I8s6AWXAIAAJHWcI4ncE562.jpg'%>">
                <input type="hidden" id="logo" name="logo" value="<%=logo||'http://windows.sxycy.cn:8888/group1/M00/00/2F/wKgBBV5I8s6AWXAIAAJHWcI4ncE562.jpg'%>"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>学校名称</label>
            <div class="layui-input-block">
                <input id="_schoolName" type="text" name="schoolName" lay-verify="required" readonly placeholder="请输入关键字" class="layui-input"
                       value="<%=schoolName%>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>学校代码</label>
            <div class="layui-input-block">
                <input id="_schoolCode" type="text" name="schoolCode" lay-verify="required" readonly placeholder="请输入关键字" class="layui-input"
                       value="<%=schoolCode%>">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">城市</label>
                <div class="layui-input-block">
                    <input name="location" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input"
                           value="<%=location%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">email</label>
                <div class="layui-input-block">
                    <input name="email" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input"
                           value="<%=email%>">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">人数</label>
                <div class="layui-input-block">
                    <input name="countPeople" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input"
                           value="<%=countPeople%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">地址</label>
                <div class="layui-input-block">
                    <input name="address" maxlength="20" lay-verify="" placeholder="请输入内容"
                           class="layui-input"
                           value="<%=address%>">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">联系人</label>
                <div class="layui-input-block">
                    <input name="contact" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input"
                           value="<%=contact%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">电话</label>
                <div class="layui-input-block">
                    <input name="telephone" maxlength="20" lay-verify="" placeholder="请输入内容"
                           class="layui-input"
                           value="<%=telephone%>">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">

                <label class="layui-form-label">简介</label>
                <div class="layui-input-block">
                    <textarea name="context"><%=context%></textarea>
                </div>

        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['upload'], function () {
        //上传
        _uploadFile({
            id: "upload_header",
            done: function(res){
                if (res.success) {
                    $('#upload_header').attr('src', res.link);
                    $('#logo').val(res.link);
                } else {
                    layui.layer.msg('上传失败');
                }
            }
        });

        selectAllSchool();

    });
</script>
<style>
    #upload_header{
        width: 100px;
        height: 100px;
    }
</style>